package com.fable.cordova;

/**
 * 结果类
 * @author afeey
 */
public class Result {

    /**
     *  是否成功
     */
    private boolean success;
    /**
     * 结果代码
     */
    private String code;
    /**
     * 消息
     */
    private String message;
    /**
     * 数据
     */
    private Object data;

    public Result(){
        success =  false;
        code  = "200";
        message = "";
        data  = null;
    }

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
